package com.starryx.blog.vo;

// 创建这个对象主要是为了解决在查询时，如果将 Blog 对象传到后端，当 Blog 所对应的 Type 为空时，
// blog.getType().getId() 会由于 Type 为空，引起空指针异常
public class BlogQuery {
    private String title;
    private Long typeId;
    private boolean recommend;

    public BlogQuery() {
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public boolean isRecommend() {
        return recommend;
    }

    public void setRecommend(boolean recommend) {
        this.recommend = recommend;
    }
}
